- 
                Notifications
    
You must be signed in to change notification settings  - Fork 44
 
struct logs: add raw key for JSON blobs #263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds raw JSON logging support to structured logging by introducing a raw key that allows JSON objects to be embedded directly into log messages. The specific implementation adds FlexrayControllerConfig JSON serialization to message tracing.
- Adds new 
rawkey to structured logging keys - Implements JSON serialization for FlexrayControllerConfig in message tracing
 - Updates logging infrastructure to handle raw JSON values without double-escaping
 
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description | 
|---|---|
| SilKit/source/services/logging/StructuredLoggingKeys.hpp | Adds new raw key and converts string keys to string_view for performance | 
| SilKit/source/services/logging/SilKitFmtFormatters.hpp | Removes trailing empty line | 
| SilKit/source/services/logging/MessageTracing.hpp | Adds YamlParser include and FlexrayControllerConfig JSON serialization to trace functions | 
| SilKit/source/services/logging/Logger.cpp | Updates JSON formatting to handle raw key values without escaping | 
| SilKit/source/core/internal/ServiceDescriptor.hpp | Updates return type to use string_view for key names | 
| SilKit/source/config/YamlWriter.hpp | Adds FlexrayControllerConfig Write method declaration | 
| SilKit/source/config/YamlWriter.cpp | Implements FlexrayControllerConfig Write method | 
| SilKit/source/config/YamlParser.hpp | Adds include guard for Windows GetCurrentTime macro | 
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
review feedback from konrad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
remove unnecessary template and clean up #defines
The raw field in slogs allows us to add debugging information in JSON. In this case, add the FR ControllerConfig as a JSON object. Refactor the TraceTx/TraceRx to use less helper templates und use more constexpr-ifs. SILKIT-1827
The
rawfield in slogs allows us to add debugging information in JSON.In this case, add the FR ControllerConfig as a JSON object.
SILKIT-1827